import random
import time
class player:
    def __init__(self, name = "", score = 0, xPosition = random.randint(1, 50), direction = 0):
        self.direction = direction
        self.name = name
        self.score = score
        self.xPosition = xPosition

    def getDirection(self):
        return self.direction

    def getName(self):
        return self.name

    def getScore(self):
        return self.score

    def getXPosition(self):
        return self.xPosition

    def setDirection(self, direction):
        self.direction = direction

    def setName(self, name):
        self.name = name

    def setScore(self, score):
        self.score = score

    def setXPosition(self, xPosition):
        self.xPosition = xPosition

